<?php

/**
 * Created by PhpStorm.
 * User: dapeng
 * Date: 2018/10/10
 * Time: 下午4:12
 */
class Action
{

    protected $tpl = null;

    function __construct()
    {
        //加载页面模板

        include_once "smarty-3.1.33/libs/Smarty.class.php";
        $this->tpl = new Smarty();
        //Views
        $this->tpl->setTemplateDir("Views");
        $this->tpl->caching = false;//默认缓存关闭 页面伪静态化+缓存
        $this->tpl->setCacheDir("smarty/Cache");
        $this->tpl->setCompileDir("smarty/compile");
        $this->tpl->setConfigDir("smarty/config");
    }

}